package br.com.upcoder.fguard.client.view;

import br.com.upcoder.fguard.client.presenter.AddDebtPresenter.Display;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class AddDebtView extends Composite implements Display {

	private static AddDebtViewUiBinder uiBinder = GWT
			.create(AddDebtViewUiBinder.class);

	@UiField
	Label budgetName;
	@UiField
	Label budgetCode;

	public AddDebtView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public void setBudgetName(String name) {
		budgetName.setText(name);
	}

	@Override
	public void setBudgetCode(Integer code) {
		budgetCode.setText(String.valueOf(code));
	}

	interface AddDebtViewUiBinder extends UiBinder<Widget, AddDebtView> {
	}

}
